/**
 * 
 */
package den.Study_2;

/**
 * @author Administrator
 *
 */
public class LinkList {
	private List head=null;
	public List head(){
		return head;
	}
	public boolean hasNext(List node){
		if(node.nextNode!=null){
			return true;
		}
		return false;
	}
	public void addNodeAtLast(int value){
		List node=new List(value);
		if(head==null){
			head=node;
		}
		else{
			List tmp=head;
			while(tmp.nextNode!=null){
				tmp=tmp.nextNode;
			}
			tmp.nextNode=node;
		}
	}

}
